Managed Components |
Managed Component
A Managed Component is exposed as a JMX Managed Bean, which represents a management-instrumented resource.
Managed components can have sub-components, setting, operations, performance counters, problems and alerts. Through the management sub system, application developers can:
- Create managed components
- Define performance counters
- Define settings
- Define and issue alerts
- Define and raise problems
- Define operations on the managed components
In Process Platform, every OS process is associated with a managed component that contains sub-components for the resources such as, LDAPCache,Service Container and so on. As an application developer, you can create sub-components in existing components and define performance counters, operations, settings, alerts, and problems on a managed component.
Note:
The name of the managed component should not contain "/" (forward slash) as it is a reserved character. The type should be a legal Java identifier. In accordance with the Java convention, types must start with a capital.
The basic initialization code to define a managed process is displayed below:
ManagedProcess.setProcessName ("process_name"); IManagedComponentm_managedComponent = ManagedProcess.createManagedComponent ("OSProcess", Messages.ROOT_COMPONENT_DESC);
After the complete tree of sub-components has been initialized, the tree of managed components must be registered as displayed below:
//registration of the component tree m_managedComponent.registerComponentTree ();
Refer to the following topics for more information on defining managed components: